package com.jnevision.rolemenu.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 角色菜单
 * </p>
 *
 * @author gavin
 * @since 2019-07-13
 */
@TableName("sys_role_menu")
public class RoleMenu extends Model<RoleMenu> {
    private static final long serialVersionUID = -1908313038803072643L;

    @TableField("role_id")
    private Integer roleId;

    @TableField("menu_id")
    private Integer menuId;

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    @Override
    protected Serializable pkVal() {
        return null;
    }

    @Override
    public String toString() {
        return "RoleMenu{" + "roleId=" + roleId + ", menuId=" + menuId + "}";
    }
}